package com.feiyangedu.time;
import  java.util.Calendar;
public class Calculate {
    public static void main(String[] args) {
        Calendar c = Calendar.getInstance();
        System.out.println(c.getTime());
        c.add(Calendar.YEAR, 1);
        c.add(Calendar.DAY_OF_MONTH, 2);
        System.out.println(c.getTime());
    }
}
